// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import fastClick from 'fastclick'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import App from './App'
import router from './router'
import store from './store/index.js'
import './assets/styles/border.css'
import './assets/styles/reset.css'
import './assets/styles/iconfont/iconfont.css'
import 'swiper/dist/css/swiper.css'
//import axios from 'axios'//必须在使用的组件中import？
//Vue.prototype.$axios=axios
 //Vue.use(axios)插件要use为什么这个不用
//Vue.use(store)不用
(function(){
  document.documentElement.style.fontSize=(window.clientWidth/750)
})();


fastClick.attach(document.body)
Vue.config.productionTip = false
Vue.use(VueAwesomeSwiper, /* { default global options } */)
//npm包含mounted钩子函数，当调用use时候后触发Vue.prototype类似的方法。
//use用于组件封装组件调用。

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
  methods:{

  },
  created(){

  }
})
